package com.gt.quality.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.gt.quality.base.pojo.CommonTableInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 字典类型表(SysDictType)表实体类
 *
 * @author makejava
 * @since 2026-12-26 11:20:04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "SysDictType", description = "EasyCode")
@TableName(value = "sys_dict_type", autoResultMap = true)
public class SysDictType extends CommonTableInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * Description:  字典主键
     */
    @TableId(value = "dict_id", type = IdType.ASSIGN_ID)
    @Schema(title = "dict_id", description = "字典主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long dictId;


    /**
     * Description:  字典名称
     */
    @TableField(value = "dict_name")
    @Schema(title = "dict_name", description = "字典名称")
    private String dictName;


    /**
     * Description:  字典父节点
     */
    @TableField(value = "parent_dict_id")
    @Schema(title = "parent_dict_id", description = "字典父节点")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentDictId;


    /**
     * Description:  字典类型
     */
    @TableField(value = "dict_type")
    @Schema(title = "dict_type", description = "字典类型")
    private String dictType;


    /**
     * Description:  备注
     */
    @TableField(value = "remark")
    @Schema(title = "remark", description = "备注")
    private String remark;


}


